import yaml


def analyze_file(file_name,case_name):
    with open("./data/%s.yaml" % file_name,"r",encoding="utf-8") as f:
        data = yaml.load(f,Loader=yaml.FullLoader)
        return data[case_name].values()

# with open("./write_data.yaml","w",encoding="utf-8") as f:
#     data = {"name":"lisi","age": 19}
#     yaml.dump(data,f,allow_unicode=True)